﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mogre;

namespace WastedMechanics.NavMesh
{
    public class Vertex
    {
        public SceneNode Node;
        public Entity Entity;

        public Vector3 Position;

        public Vertex(Vector3 pos)
        {
            Position = pos;            
        }

        public void Visualize()
        {
            Node = Engine.SceneManager.RootSceneNode.CreateChildSceneNode();
            Entity = Engine.SceneManager.CreateEntity("RedMarker.mesh");
            Node.AttachObject(Entity);
            Node.Position = Position;
            Entity.CastShadows = false;
        }
    }
}
